package com.teamall.web.sjtj.service.impl;

import com.teamall.web.sjtj.db.dao.SjtjJzsbDao;
import com.teamall.web.sjtj.service.IJzbsService;
import com.teamall.web.sjtj.vo.*;
import com.teamall.web.sys.db.po.SysUserPO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * ${DESCRIPTION}
 *
 * @author
 * @create 2017-09-10 10:41
 **/
@Service("jzbsService")
public class JzsbServiceImpl implements IJzbsService{
    @Autowired
    private SjtjJzsbDao sjtjJzsbDao;
    @Override
    public Map getPkfbMain(String date) {
        Map resultMap = new HashMap();
        List<PkfbChatVO>  chatData = sjtjJzsbDao.getPkfbMain(date);
        List<PkfbTableVO>  tableData = sjtjJzsbDao.getPkfbTableData(date);
        resultMap.put("chatData",chatData);
        resultMap.put("tableData",tableData);
        return resultMap;
    }
    @Override
    public Map getZpyyMain(String date) {
        Map resultMap = new HashMap();
        List<ZpyyChatVO>  chatData = sjtjJzsbDao.getZpyyMain(date);
        List<ZpyyTableVO>  tableData = sjtjJzsbDao.getZpyyTableData(date);
        resultMap.put("chatData",chatData);
        resultMap.put("tableData",tableData);
        return resultMap;
    }
    @Override
    public Map getPksrMain(String date) {
        Map resultMap = new HashMap();
        List<PksrTableVO>  tableData = sjtjJzsbDao.getPksrTableData(date);
        resultMap.put("tableData",tableData);
        return resultMap;
    }
}
